// Copyright 2011 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.


/*
 * @fileoverview Template for ChangeUser model.
 *
 * @author jasonstredwick@google.com (Jason Stredwick)
 */


{namespace bite.layer.soy.ChangeUser}


/**
 * Returns a link tag for the view.
 * @param baseUrl Base url for relative links.
 */
{template .getView}
<link rel="stylesheet" type="text/css"
      href="{if $baseUrl}{$baseUrl}{/if}layer/resources/change_user.css">
{/template}


/**
 * Defines the model for the change user console that changes who the system
 * thinks is logged in.
 */
{template .getModel}
<div id="layer-dialog">
  <div id="layer-dialog-vertical-aligner"></div>

  <div id="layer-dialog-console" class="layer-console">
    <div class="layer-console-title">Change User</div>

    <div class="layer-console-body">
      <fieldset>
        <ol>
          <li>
            <label for="layer-dialog-input-user"
                   class="layer-console-input-label">User</label>
            <input id="layer-dialog-input-user"
                   type="text" value="" maxlength="100" size="40">
        </ol>
      </fieldset>
    </div>

    <div class="layer-console-footer">
      <button id="layer-dialog-ok" type="button">Ok</button>
      <button id="layer-dialog-cancel" class="layer-console-button-right"
              type="button">Cancel</button>
    </div>
  </div>
</div>
{/template}

